<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/11 0011
 * Time: 13:41
 */

namespace Tool\Controller;
use Think\Controller;
use Think\Page;

class TeacherController extends CommonController
{
    public function index()
    {
        $allcate=M("article_news")->order("id desc")->select();
        $this->assign("cates",$allcate);

       parent::index();
    }
    public function edit()
    {
        $allcate=M("article_news")->order("id desc")->select();
        $this->assign("cates",$allcate);
        parent::edit();
    }
}